﻿<?php
include_once("zUpload.class.php");
$imagem = $_FILES['imagem'];
$upload = new Upload( );
$upload->setDir( "../../../fotos/alunos/" );
$upload->setMaxLength( 10 ); // 10 KB
$upload->setName( "1090909.jpg" );
$upload->setName( "1090909.jpg" );
// 
$upload->setTypes( Array("image/jpg", "image/jpeg", "image/pjpeg") );
$result = $upload->execute( $imagem );
  
if ( $result ){
	echo "OK";
} else {
	echo $upload->getMessage();
}
?>